<?php

use yii\helpers\Html;
use yii\widgets\DetailView;

/* @var $this yii\web\View */
/* @var $model app\modules\Agreement\models\Agreement */

$this->title = $model->code;
$this->params['breadcrumbs'][] = ['label' => '合同详情', 'url' => ['index']];
$this->params['breadcrumbs'][] = $this->title;
?>
<div class="agreement-view">

    <div class="box">
        <div class="box-header">
            
        </div>
        <div class="box-body"> 
        <h1><?= Html::encode($this->title) ?></h1>

        <?= DetailView::widget([
            'model' => $model,
            'attributes' => [
                'id',
                'code',
                'customer_id',
                'type',
                'order_type',
                'sale_currency',
                'sale_price',
                'payment_type',
                'payment_date',
                'warranty',
                'exemption',
                'trade_company',
                'trade_contract',
                'invoice_no',
                'trade_main',
                'send_date',
                'install_date',
                'remarks',
                'user_id',
                'status',
                'created_at',
                'updated_at',
            ],
        ]) ?>
        </div>
    </div>
</div>
